home *** CD-ROM | disk | FTP | other *** search
- Path: noc.tor.hookup.net!the-fix.sos.on.ca
- From: <verneb@the-fix.sos.on.ca>
- Date: Sun,21 Jan 96 19:24:42 -0500
- Newsgroups: comp.lang.c
- Subject: iHelp! Dumb question for smart THINK C users.
- Message-ID: <tcpnntpd.16.1.21.19.24.42.2781597121.353061@the-fix.sos.on.ca>
- References: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
- Organization: the FIX - Kitchener, Ontario CANADA
- NNTP-Posting-Host: the-fix.sos.on.ca
- X-MajorTCP-Version: MajorTCP/IP [1.81-5]
-
- To: INT:stlabguest@wesleyan.e
-
- This is a simple one! If you had looked at your type at the time you
- likely had typed printf without the 't'. This happens quite regularly
- with us professional typists! Your first code was right but if your
- printf was typed correctly you might have a compiler problem. Do some
- more playing around with it until you get more used to how it runs.
- Good luck.
-
- Int:stlabguest@wesleyan.e,
-
- I>I'm a total newbie to C programming, but I got a copy of THINK C yesterday
- I>and decided to try to learn. So I tried a very simple program:
- I>
- I>..h>
- I>main()
- I>{
- I>printf( "bla" );
- I>}
- I>
- I>It compiled without any errors, but when I tried to run it, it said that
- I>there was a link error: it didn't know what "prinf" meant. I'm sure that
- I>it was loading the "STDIO.h" properly, because I changed the program to:
- I>
- I>..h>
- I>main()
- I>{
- I>printf( "bla" );
- I>}
- I>
- I>and it told me it couldn't find the file "dummy.h" What gives? I thought
- I>my
- I>STDIO.h file might be the problem, but I tried a different copy in my
- I>school's computer lab and it still didn't work.
- I>
- I>Thanks in advance,
- I>
- I>-jacob eisenstein
- I>jacob@helpdesk.wesleyan.edu
- I>
-
- Verne H. Bohlender
- Box 416, Chesley, Ontario.Ca. N0G 1L0
- verneb@The-Fix.sos.on.ca
- ___
- * UniQWK #2158*
-
-